#!/usr/bin/env python

from google.appengine.ext import webapp
from google.appengine.ext.webapp import util

from vateblog.handler.HomeHandler import HomeHandler
from vateblog.handler.PostHandler import PostHandler
from vateblog.handler.SetupHandler import SetupHandler
from vateblog.handler.NewPostHandler import NewPostHandler


def main():
    application = webapp.WSGIApplication([
#viewer
        ('/', HomeHandler),
        ('/home', HomeHandler),
        ('/post', PostHandler),
#admin
        ('/admin', SetupHandler),
        ('/admin/setup', SetupHandler),
        ('/admin/new_post', NewPostHandler),
    ], debug=True)
    util.run_wsgi_app(application)


if __name__ == '__main__':
    main()
